import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import cookie from './cookie.js'

import '../public/common/js/rem.js'
import '../public/common/css/reset.css'

Vue.prototype.$http = axios
Vue.prototype.baseUrl =
    'https://xiaocx.huiuqian.com/qichengletest/web/index.php?c=user&a=webshow&op='

Vue.config.productionTip = false

Vue.prototype.$cookie = cookie

Vue.prototype.globalData = {
    list: [],
    self: {
        number: '',
        name: '',
        votes: [], // list.id
        lottery: false,
        voted: false
    }
}

new Vue({
    router,
    render: h => h(App)
}).$mount('#app')
